package com.example.houseman.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.houseman.entity.TbPrivateFacility;
import com.example.houseman.service.ITbPrivateFacilityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 独立配置表 前端控制器
 * </p>
 *
 * @author 龚梦
 * @since 2021-03-31
 */
@RestController
@RequestMapping("/hou/TbPrivateFacilityController")
public class TbPrivateFacilityController {

    @Autowired
    private ITbPrivateFacilityService iTbPrivateFacilityService;

    /**
     * 房间配套
     * @return
     */
    @RequestMapping("/prilist")
    public List<TbPrivateFacility> list(){
        QueryWrapper queryWrapper = new QueryWrapper();
        List<TbPrivateFacility> list = iTbPrivateFacilityService.list(queryWrapper);
        return list;
    };

}
